package com.test.utils;

import com.test.base.InitAppium;

/**
 * Author:xuedonglei
 * Date: 2017/5/5
 */
public class CheckNetwork extends InitAppium{

    /***
     * 检查网络
     * @return 是否正常
     */
    public static boolean checkNet() {
        String text = driver.getConnection().toString();
        if (text.contains("Data: true"))
            return true;
        else
            return false;
    }
}
